package spring.bean;

import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

public class MainA {
    public static void main(String[] args) {
        int s1 = add(1, 2);

        int s2 = add(3, 4);

        for (int i = 0; i < 100; i++) {
            System.out.println(i);
        }
        List<String> names = Arrays.asList("Alice", "Bob", "Charlie", "David");
        List<String> result = names.stream()
                .filter(name -> name.length() > 3)
                .map(String::toUpperCase)
                .collect(Collectors.toList());


    }

    public static int add(int a, int b) {
        System.out.println("aaaaa");
        return a + b;
    }
}
